<div class="row-fluid">
	<h3 class="title"><?php echo __("Personal Information")?></h3>
    <div class="clear">
        <form name="frm_order" method="post" action="<?php echo url_for("@order")?>" id="frm_order">
            <div class="row-fluid form-row">
                <label for="customer_name" class="form-label span3"><?php echo __("Name")?> <span>(*)</span></label>
                <div class="span8">
                    <div class="row-fluid">
                        <input disabled="disabled" id="customer_name" name="customer_name" type="text" class="span12 text" value="<?php echo ($sf_user->getGuardUser())?($sf_user->getGuardUser()->first_name." ".$sf_user->getGuardUser()->last_name):"" ?>" />
                    </div>
                </div>
            </div>
            <div class="row-fluid form-row">
                <label for="customer_tel" class="form-label span3"><?php echo __("Phone number")?> <span>(*)</span></label>
                <div class="span8">
                    <div class="row-fluid">
                        <input id="customer_tel" name="customer_tel" type="text" class="span12 text" value="<?php echo ($sf_user->getGuardUser())?($sf_user->getGuardUser()->tel):"" ?>" />
                    </div>
                </div>
            </div>
            <div class="row-fluid form-row">
                <label for="delivery_address" class="form-label span3"><?php echo __("Delivery Address")?> <span>(*)</span></label>
                <div class="span8">
                    <div class="row-fluid">
                        <input id="delivery_address" name="delivery_address" type="text" class="span12 text" value="<?php echo ($sf_user->getGuardUser())?($sf_user->getGuardUser()->address):"" ?>" />
                    </div>
                    <div class="row-fluid">
                        <span class="help-block span12"><?php echo __("i.e"); ?> 151/21 Lê Thị Riêng, Phường Bến Thành, Quận 1</span>
                    </div>
                </div>
            </div>
            <div class="row-fluid form-row">
                <div class="span3"></div>
                <div class="span8">
                    <div class="row-fluid">
                        <input type="checkbox" name="cbo_is_address_default" id="cbo_is_address_default" /> <label for="cbo_is_address_default" class="help-block" style="display:inline-block"><?php echo __("set this address be default address")?></label>
                    </div>
                </div>
            </div>
            <div class="row-fluid form-row">
                <label for="customer_email" class="form-label span3">Email <span>(*)</span></label>
                <div class="span8">
                    <div class="row-fluid">
                        <input id="customer_email" name="customer_email" type="text" class="span12 text" value="<?php echo ($sf_user->getGuardUser())?($sf_user->getGuardUser()->email_address):"" ?>" />
                    </div>
                </div>
            </div>
            <div class="row-fluid form-row">
                <label for="order_method" class="form-label span3"><?php echo __("Payment method")?></label>
                <div class="span8">
                    <div class="row-fluid">
                        <div class="span12">
                            <select name="order_method" id="order_method">
                                <option value="0"><?php echo __("Cash")?></option>
                                <option value="1"><?php echo __("Bank transfer")?></option>
                            </select>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row-fluid form-row">
                <div class="span3"></div>
                <div class="span8">
                    <button class="btn btn-info" id="btnSubmit" <?php echo (isset($order_notify))?"disabled":"" ?>><?php echo __("Order now"); ?></button>
                </div>
            </div>
        </form>
    </div>
</div>

<script>
	$(document).ready(function()
	{
		$("#frm_order").validate({
			rules: {
				customer_name: "required",
				customer_tel: "required",
				delivery_address: "required",
				customer_email: {
					required: true,
					email: true
				}
			},
			messages: {
				customer_name: "<?php echo __("Please enter name")?>",
				customer_tel: "<?php echo __("Please enter a phone number")?>",
				delivery_address: "<?php echo __("Please enter delivery address")?>",
				customer_email: "<?php echo __("Please enter a valid email address")?>"
			}
		});
	});
</script>